class Solution {
public:
    int maxCount(int m, int n, vector<vector<int>>& ops) {
        int a = m,b = n;
        for(auto & e : ops)
        {
            a = min(a,e[0]),b = min(b,e[1]);
        }
        return a* b;
    }
};